警报维护 Cmdlet
下面是用于从数据库中删除警报的命令列表。
参数必须使用粗体格式。
Invoke-AmcRemoveOrphanedAlerts
删除所有没有任何关联事件的警报。
返回值:空
参数 | 参数说明 |
---|---|
BatchSize (Int) | 每批事务中将受到影响的行数。 |
BatchDelay (Int) | SQL 将暂停以允许其他事务进行处理的时间量(以秒为单位)。 |
Test-AmcRemoveOrphanedAlerts
提供 Invoke-AmcRemoveAllOrphanedAlerts web 方法的预览结果 - 没有任何关联事件的警报的编号将遭到删除。
返回值:空
参数 | 参数说明 |
---|---|
BatchSize (Int) | 每批事务中将受到影响的行数。 |
每个 Test- <OperationName> 命令都返回一个 PreviewDataSet 对象。此结果包含以下信息:
•CountOfEventRows
•CountOfEventDeprecatedRows
•CountOfEventBatches
•CountOfDeprecatedBatches
•CountOfAlertRows
•CountOfAlertBatches
•TimeOfExecution (UTC)